package org.liux.android.game.jumpgame;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.widget.Button;

public class PrepareActivity extends Activity {
	
	Button startButton;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);

		setContentView(R.layout.prepare);
		
		init();
	}
	
	public void init(){
		startButton = (Button)this.findViewById(R.id.startButton);
		startButton.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent intent = new Intent(PrepareActivity.this, JumpGameActivity.class);
				startActivity(intent);
				PrepareActivity.this.finish();
			}
		});
	}
}
